package org.yefei.homeworkday15.onetwo;

public class JavaTeacher extends Teacher {

	public JavaTeacher(String name, double teachAge, String sex, String sub) {
		super(name, teachAge, sex, sub);
	}

	@Override
	public void attendClass() {
		System.out.println(super.getName() + "开始用eclipse上课。。。。。。");
	}

	public void say() {
		System.out.println(super.getName() + "说：你好！");
	}
}
